<template>
  <div class="image-container">
    <img v-for="file in fileList" :key="file" :src="`/upload/${file}`" alt="" />
  </div>
</template>

<script setup>
import { onMounted, ref } from 'vue'
const fileList = ref([])
onMounted(async () => {
  const files = await myApi.getFileList()
  fileList.value = files
})
</script>
<style scoped lang="stylus">
.image-container
  padding 10px
  img
    width 200px
    margin-right 10px
</style>
